﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;

namespace WDA.Web
{
	/// <summary>
	/// Configuration section of WDAB http module.
	/// </summary>
	public class WDAHttpModuleConfigurationSection : ConfigurationSection
	{
		/// <summary>
		/// Gets name of WDAB configuration to use.
		/// </summary>
		[ConfigurationProperty("wdaConfigurationName", IsRequired=true)]
		public string ConfigurationName
		{
			get { return (string)this["wdaConfigurationName"]; }
		}
		/// <summary>
		/// Gets name of WDAB node (host) which defines this web application.
		/// </summary>
		[ConfigurationProperty("hostName", IsRequired = true)]
		public string HostName
		{
			get { return (string)this["hostName"]; }
		}
		/// <summary>
		/// Gets Unity configuration section name.
		/// </summary>
		[ConfigurationProperty("unitySectionName", IsRequired = true)]
		public string UnitySectionName
		{
			get { return (string)this["unitySectionName"]; }
		}
		/// <summary>
		/// Gets outer (configuring) Unity container name.
		/// </summary>
		[ConfigurationProperty("unityContainerName", IsRequired = true)]
		public string UnityContainerName
		{
			get { return (string)this["unityContainerName"]; }
		}
	}
}
